package com.asj.house.client;

import com.asj.house.config.feign.HouseHitsFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseHitsClient", url = "${house.url}", configuration = HouseHitsFeignConfig.class)
public interface HouseHitsClient {

    /**
     * 房源点击量异步数据接入
     * @param roomId
     * @return
     */
    @PostMapping("/house-hits/access")
    RespEntity houseHitsAccess(@RequestParam(value = "roomId", required = true) Integer roomId);
}
